-- GENERATED SPELL FOR [Shadowy Summoner] --


function spell0_17088(pUnit, Event) --@Scorch,n/a--
pUnit:FullCastSpellOnTarget(13878,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17088', 1500, 1)
end

function spell1_17088(pUnit, Event) --@Summon Succubus,Self--
pUnit:FullCastSpellOnTarget(8722,pUnit)
pUnit:RegisterEvent('Sorts_17088', 674, 1)
end

function Sorts_17088(pUnit, Event)
local choix_sorts_17088 = math.random(0, 1)
if choix_sorts_17088 == 0 then
pUnit:RegisterEvent('spell0_17088', 1, 1)
end
if choix_sorts_17088 == 1 then
pUnit:RegisterEvent('spell1_17088', 1, 1)
end
end

function mob17088_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17088', math.random(1500, 3000), 1)
end

function mob17088_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17088_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17088_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17088, 1, 'mob17088_Action')
RegisterUnitEvent(17088, 2, 'mob17088_Leave')
RegisterUnitEvent(17088, 3, 'mob17088_Kill')
RegisterUnitEvent(17088, 4, 'mob17088_Die')
